﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBatisNet.DataMapper.TypeHandlers;

namespace Business.ibatis
{
    public class TextTypeHandler : ITypeHandlerCallback
    {
        public object GetResult(IResultGetter getter) {
            return getter.Value;
        }
        
        public object NullValue { 
            get { 
                return null; 
            } 
        }
        
        public void SetParameter(IParameterSetter setter, object parameter) {
            setter.Value = parameter; 
        }
        
        public object ValueOf(string s) { 
            return s; 
        }
    }
}
